<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<input type="" name="" value="还有一小时下课" disabled>
	<input type="checkbox" name="" class="check" checked>
	<select>
		<option class="op1">选项1</option>
		<option class="op2">选项2</option>

	</select>
	<button onclick="get()">获取</button>



	<script type="text/javascript">
		let inp = document.querySelector("input")
		let check = document.querySelector(".check")
		let op1 = document.querySelector(".op1")
		let op2 = document.querySelector(".op2")

		console.log(inp.value)
		// 禁用属性
		console.log(inp.disabled)//因为加了disabled 打印出来的是true，如果没加是false
		// 选中属性
		console.log(check.checked)//true

		console.log(op1.selected,'选项1')
		console.log(op2.selected,'选项2')

		function get(){
			console.log(op2.selected,"22222222")
		}
	</script>
</body>
</html>